<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>这是在线OJ题目列表</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
        }
        html,
        body{
            width: 100%;
            height: 100%;
        }
        /* 设置导航栏 */
        .container .navbar {
            width: 100%;
            height: 50px;
            background-color: black;
            /*DEBUG*/
            /* 给父级标签设置overflow，取消浮动带来的影响 */
            overflow: hidden;
        }

        .container .navbar a {
            /* 设置a标签是行内块元素，允许你设置宽度 */
            display: inline-block;
            /* 设置a标签的宽度，a标签默认为行内元素，无法设置高度 */
            width: 80px;
            color: white;
            font-size: larger;
            /* 设置文字的告诉和导航栏一样的高度 */
            line-height: 50px;
            /* 去掉a标签的下划线 */
            text-decoration: none;
            /* 设置文字居中 */
            text-align: center;
        }

        .container .navbar a:hover {
            background-color: green;
        }

        .container .navbar .login {
            float: right;
        }

        /* 设置questions_list */
        .container .questions_list {
            padding-top: 50px;
            width: 800px;
            height: 100%;
            margin: 0px auto;
            /* background-color: green; */
            text-align: center;
        }

        .container .questions_list table {
            margin-top: 30px;
            width: 100%;
            font-size: large;
            font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
            background-color: #c6d0ca;
        }

        .container .questions_list h2 {
            color: green;
        }

        .container .questions_list table .iter {
            width: 100px;
            height: 20px;
            padding-top: 5px;
            padding-bottom: 5px;
            font-size: larger;
            font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
            /* color: aqua; 暂时*/
        }

        .container .questions_list table .iter a {
            text-decoration: none;
            color: black;
        }

        .container .questions_list table .iter a:hover {
            color: blue;
            text-decoration: underline;
        }
        /* 设置footer */
        .container .footer{
            height: 50px;
            width: 100%;
            text-align: center;
            line-height: 50px;
            color: #ccc;
            margin: auto;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="navbar">
            <a href="#"></a>
            <a href="/index.html">首页</a>
            <a href="#">竞赛</a>
            <a href="#">讨论</a>
            <a href="#">求职</a>
            <a class="login" href="#">登录</a>
            <a href="首#页">注册</a>
        </div>
        <div class="questions_list">
            <h2>OnlineJudge题目列表</h2>
            <table>
                <tr>
                    <th class="iter">编号</th>
                    <th class="iter">题目</th>
                    <th class="iter">难度</th>
                </tr>

                {{#questions_list}}
                <tr>
                    <td class="iter">{{number}}</td>
                    <td class="iter">
                        <a href="question/{{number}}">{{title}}</a>
                    </td>
                    <td class="iter">{{star}}</td>
                </tr>
                {{/questions_list}}
            </table>
        </div>
        <div class="footer">
            <h4>@lsg</h4>
        </div>
    </div>


</body>

</html>